package com.feige.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 请假表
 * </p>
 *
 * @author feige
 * @since 2020-11-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AskForLeave对象", description="请假表")
public class AskForLeave implements Serializable {

    private static final long serialVersionUID = -330646110955686808L;

    @ApiModelProperty(value = "请假编号")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "是否外出")
    private Integer isGoOut;

    @ApiModelProperty(value = "请假原因")
    private String reason;

    @ApiModelProperty(value = "请假人")
    private String leaveUserId;

    @ApiModelProperty(value = "请假人邮箱")
    @TableField(exist = false)
    private String email;

    @ApiModelProperty(value = "电话号码")
    private String phoneNumber;

    @ApiModelProperty(value = "紧急联系人")
    private String emergencyContact;

    @ApiModelProperty(value = "紧急联系人电话")
    private String emergencyContactNumber;

    @ApiModelProperty(value = "审核情况(1已通过,2未审核,3未通过)")
    private Integer audit;

    @ApiModelProperty(value = "审核人")
    private String auditUser;

    @ApiModelProperty(value = "签名图片")
    private String auditImg;

    @ApiModelProperty(value = "是否销假(0是1否)")
    private Integer leaveOff;

    @ApiModelProperty(value = "请假开始时间")
    private Date beginTime;

    @ApiModelProperty(value = "请假结束时间")
    private Date endTime;

    @ApiModelProperty(value = "请假去向")
    private String leaveTo;


    @ApiModelProperty(value = "状态(1正常,2禁用)")
    private Integer status;

    @ApiModelProperty(value = "是否删除")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
